#ifndef _DB_SERVER_H_
#define _DB_SERVER_H_

#include <iostream>
#include <map>
#include "netserver.h"
#include "netclient.h"
#include "mpool.h"
#include "mongoclient.h"
#include "logic.h"

class DBServer:public LogicServer{
    public:
        DBServer(){
        }

        DBServer(const char* dbip, int port):LogicServer(port),m_mongo(dbip){}

       /**
        * 主处理函数
        */
        void handle(void* arg);

    private:
        MongoClient     m_mongo;
};

#endif
